---
# tasks file for common2
- name: root password
  ansible.builtin.user:
    name: root
    update_password: always
    password: "{{ root_password }}"

- name: ssh variables
  ansible.builtin.include_vars:
    file: "{{ ansible_distribution_release }}.yml"

- name: ssh config
  ansible.builtin.copy:
    src: sshd_config
    dest: "{{ ssh_config_path }}"
  notify:
  - restart ssh

- name: avahi configuration
  ansible.builtin.replace:
    path: /etc/avahi/avahi-daemon.conf
    regexp: '#domain-name=local'
    replace: 'domain-name=alocal'
  when: ansible_facts['distribution'] == "Astra Linux (Orel)"
  notify: restart avahi
